import request from '@/utils/request'

// 登录方法
export function login(loginName, password, code, uuid) {
  const data = {
    loginName,
    password,
    code,
    uuid
  }
  return request({
    url: '/bopeng-cms/station/user/login',
    // url: '/bopeng-cms/login',
    headers: {
      isToken: false,
      repeatSubmit: false
    },
    method: 'post',
    data
  })
}

// 退出方法
export function logout() {
  return request({
    url: '/bopeng-cms/logout',
    method: 'post'
  })
}
